//WL_ERROR.H

#ifndef __WL_ERROR_H
#define __WL_ERROR_H

#include <stack>
#include <string>

class cMessageHandler
{
    public:
    //Ctor and Dtor
    //cMessageHandler(void);
    //~cMessageHandler(void);

    void StoreMsg(const char*);
    void PrintLog(void);
    void LogMessage(std::string, int);

    private:
    // Message Stack
    // The idea being that all messages in the game will be passed to this stack to be output
    // into a log file for use. Error severity will be handled by other means
    // as this stack is meant solely for storing text. Each error will be handled
    // on a case-by-case basis by a hanlding function. For integrity's sake, it should be kept
    // isolated from anything outside of the class itself. Set to use the 'const char*' type
    // for compatibility with existing error handling function.
    std::stack<const char*> msgStack;


};

//Global message handler object
extern cMessageHandler msgHandler;

#endif // __WL_ERROR_H
